using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMS.Core.Domain;
using CMS.Data;

namespace CMS.Web.ListManager
{
    public partial class GopYDetail : System.Web.UI.Page
    {
        GopY obj = new GopY();

        protected void Page_Load(object sender, EventArgs e)
        {
            String idGopY = ProjectBase.Utils.CRequest.GetQueryUri("gopyid", "");
            if (!idGopY.Equals(""))
            {
                obj = NHibernateDaoFactory.Instance.GetGopYDao().GetById(Convert.ToInt32(idGopY));
                this.SetDetail();
            }
            btnClose.Attributes.Add("onclick", "return CloseForm()");
        }

        private void SetDetail()
        {
            this.lblFullName.Text = this.obj.HoTen;
            this.lblEmail.Text = this.obj.Email;
            this.lblFone.Text = this.obj.DienThoai;
            this.lblAdd.Text = this.obj.DiaChi;
            this.lblTitle.Text = this.obj.TieuDe;
            this.lblContent.Text = this.obj.NoiDung;
            this.lblAttachFile.Text = this.obj.CMND;
        }


        protected override void OnPreInit(EventArgs e)
        {
            this.Theme = "red";
            base.OnPreInit(e);
        }
    }
}
